#include "boundingbox.h"

BoundingBox::BoundingBox(void) {
    this->max = Vector4(0, 0, 0, 0);
    this->min = Vector4(0, 0, 0, 0);
}

BoundingBox::BoundingBox(Vector4 min, Vector4 max) : min(min), max(max) {
}

BoundingBox::~BoundingBox(void) {
}

bool BoundingBox::IsPointInside(Vector4 point) {
    if ( point.x >= this->min.x && point.y >= this->min.y && point.z >= this->min.z &&
            point.x <= this->max.x && point.y <= this->max.y && point.z <= this->max.z ) {
        return true;
    } else {
        return false;
    }
}
